package com.dd.controller;

import com.dd.entity.R;
import com.dd.service.IInventoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 库存表 前端控制器
 * </p>
 *
 * @author dhd
 * @since 2024-10-21
 */
@RestController
@RequestMapping("/inventory")
public class InventoryController {
    @Autowired
    private IInventoryService inventoryService;
    @GetMapping("/selectAllInventory")
    public R selectAllInventory(@RequestParam("pageNum") int pageNum, @RequestParam("productName") String productName) {
        return R.success(inventoryService.selectAllInventory(pageNum,productName));
    }

}
